using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace AdminApiTemplate.Tasks
{
    /// <summary>
    /// 添加执行日志
    /// </summary>
    public class AddExecuteLogRequest
    {
        [Description("任务Id")]
        public int? TaskId { get; set; }

        [Description("任务名称")]
        [MaxLength(50)]
        public string TaskName { get; set; }

        /// <summary>
        /// 耗时
        /// </summary>
        public long? CostTime { get; set; }

        /// <summary>
        /// 是否执行成功
        /// </summary>
        [Description("是否执行成功")]
        public bool? Success { get; set; }

        /// <summary>
        /// 执行结果
        /// </summary>
        [Description("执行结果")]
        [MaxLength(50)]
        public string Message { get; set; }
    }
}
